<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Select a location_{$webname}</title>
<meta name='keywords'    content='{$keywords}'>
<meta name='description' content='{$description}'>
<!--公共样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/reset.css" />
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/common.css" />
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome.min.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Plugins/FontAwesome/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--公共样式结束-->
<!--页面样式开始-->
<link rel="stylesheet" type="text/css" href="{$NOW_THEME_URL}/Assets/Css/page_address.css" />
<!--页面样式结束-->
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="{$NOW_THEME_URL}/Assets/Js/jquery.SuperSlide.2.1.1.js"></script>
</head>

<body>
<div class="zhezhao"></div>
<div class="zz">
	<!--top start-->
	<include file="Public:header" lang="true" />
	<!--top end-->
	<!--content start-->
	<div class="content">
		<div class="buzou clearfix">
			<div class="buzou_left">
			<dl class="hover">
				<dt>1.Select a location</dt>
				<dd><a href="{:U('Index/address')}"></a></dd>
			</dl>
			<dl>
				<dt>2.Choose a restaurant</dt>
				<notempty name="city.adds">
					<dd><a href="{:U('Restaurant/index')}"></a></dd>
				<else />
					<dd><a ></a></dd>
				</notempty>
			</dl>
			<dl>
				<dt>3.Choose dishes</dt>
				<dd><a ></a></dd>
			</dl>
			<dl>
				<dt>4.Confirm Order</dt>
				<dd><a ></a></dd>
			</dl>
			<dl>
				<dt>5.Complete order</dt>
				<dd><a ></a></dd>
			</dl>
			</div>
			<div class="buzou_right">
				<a href="http://vipwebchat.tq.cn/pageinfo.jsp?version=vip&admiuin=9632675&ltype=100&iscallback=0&page_templete_id=79615&is_message_sms=0&is_send_mail=0&action=acd&acd=1&type_code=1" target=_blank><img src="http://float2006.tq.cn/staticimg.jsp?version=vip&admiuin=9632675&ltype=100&action=acd&acd=1&type_code=1&onlinepic=http://userfiles.tq.cn/userfiles/upload_163/9632675/1411565972.png&offlinepic=http://userfiles.tq.cn/userfiles/upload_163/9632675/1411628431.png" border='0' /></a>
			</div>
		</div>
		<!--address start-->
		<div class="address">
        	<div class="my_add">My address</div>
            <div class="my_look">Please click on the address view optional Restaurant</div>
            
            <volist name='address' id='v'> 
	            <div class="add_list clearfix">
	            	<div class="add_left">
	                    <h4><span class="add_city">{$v.city|getaddresscity=###}</span>{$v.realname}<span class="add_tel">【 Tel：{$v.mobile} 】</span></h4>                    
	                    <div class="add_detail"><b>Detail：</b>{$v.address}</div>
	                    <div class="add_btn">
	                    	<a href="{:U('Member/address_edit','id='.$v['id'])}" class="add_editor">Edit</a>
	                    	<a rel="{$v.id}" class="add_delect">Delete</a>
	                    </div>
	                </div>
	                <div class="add_right">
	                	<a href="{:U('Restaurant/index','addressid='.$v['id'])}">
	                		<i class=" icon-chevron-right icon-3x"><em>To order</em></i>
	                	</a>
	                </div>
	            </div>
            </volist>
            
            <div id="add_address" class="add_list_add clearfix" style="width:150px;text-align:center">
            	<a href="{:U('Member/address_index')}">
                    <div class="add_left">
                        <h4 class="add_address"><i class="icon-plus"></i>Add address</h4>                    
                        <!-- <div class="add_detail">网上登记的地址信息将只用于网上订餐，该信息不与Sherpa's呼叫中心电话订餐信息记录通用。</div> -->
                    </div>
                </a>
            </div>
		</div>
		<!--address end-->
	</div>
	<!--content end-->
	
	<!--footer start-->
	<include file="Public:footer" lang="true" />
	<!--footer end-->
</div>
<script type="text/javascript">
	
	$(function(){
		/*箭头的高度设置开始*/
		var addheight = $('.add_list').height();
		$('.add_right').height(addheight);
		$('.add_right i').css("line-height",addheight+"px");
		/*箭头的高度设置结束*/
		
		//地址删除
		$('.add_delect').on('click',function(){
			var id = $(this).attr("rel"); 
			$.get("{:U('Member/addrdel')}",{id:id},function(data){
				if(data.status==1){
					window.location.href="{:U('Index/my_address')}";
				}else{
					alert(data.info);
				}
			});
		});
	})
</script>
</body>
</html>
